package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.PotentialCustomer;
import cn.wolfcode.crm.query.PotentialCustomerQueryObject;
import cn.wolfcode.crm.query.QueryForObject;
import cn.wolfcode.crm.util.BecameDataLoad;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IPotentialCustomerService {

    void deleteByPrimaryKey(Long id);

    void insert(PotentialCustomer record);

    PotentialCustomer selectByPrimaryKey(Long id);

    List<PotentialCustomer> selectAll();

    void updateByPrimaryKey(PotentialCustomer record);

    PageResult queryListByQo(QueryForObject qo);

    void updateStateById(PotentialCustomer potentialCustomer);

    PageResult queryResourcePoolListByQo(PotentialCustomerQueryObject qo);

    void updateMarketingPersonAndStateById(PotentialCustomer potentialCustomer);

    int queryPotentialCustomerNumberBySchoolId(Long id);

    void become(PotentialCustomer potentialCustome, BecameDataLoad becameDataLoad);
}
